<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var num1=0;
        var num2=0;
        var num3=0;
        var num4=0;
        for(i=0;i<=100;i++){
            if(i%2==0){
                num1+=i;
            }
        }
        console.log(num1);
        var num5=0;
        while(num5<=100){
            if(num5%2==0){
                num2+=num5;
            }
            num5++;
        }
        console.log(num2)
        for(ii=0;ii<=100;ii++){
            if(ii%2==1){
                num3+=ii;
            }
        }
        console.log(num3);
        var num6=0;
        while(num6<=100){
            if(num6%2==1){
                num4+=num6;
            }
            num6++;
        }
        console.log(num4)
    </script>
</body>
</html>